home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / update / RCS / regexp.h,v < prev    next >
Encoding:
Text File  |  1992-01-28  |  843 b   |  53 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     92.01.27.22.23.02;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*
  26.  * Definitions etc. for regexp(3) routines.
  27.  *
  28.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  29.  * not the System V one.
  30.  */
  31.  
  32. #ifndef _REGEXP
  33. #define _REGEXP 1
  34.  
  35. #define NSUBEXP  10
  36. typedef struct regexp {
  37.     char *startp[NSUBEXP];
  38.     char *endp[NSUBEXP];
  39.     char regstart;        /* Internal use only. */
  40.     char reganch;        /* Internal use only. */
  41.     char *regmust;        /* Internal use only. */
  42.     int regmlen;        /* Internal use only. */
  43.     char program[1];    /* Unwarranted chumminess with compiler. */
  44. } regexp;
  45.  
  46. extern regexp *regcomp();
  47. extern int regexec();
  48. extern void regsub();
  49. extern void regerror();
  50.  
  51. #endif /* REGEXP */
  52. @
  53.